package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 *订货单发货状态枚举
 */
@Getter
public enum OrderExpressStatusEnum {
    //待发货
    DELIVERED("1", "enum.orderExpressStatus.name.delivered", "delivered"),
    //部分发货
    PARTIAL_DELIVERY("2", "enum.orderExpressStatus.name.partial_delivery", "PartialDelivery"),
    //全部发货
    SHIP_ALL("3","enum.orderExpressStatus.name.ship_all","ShipAll"),
    ;
    private String code;
    private String name;
    private String attr;

    OrderExpressStatusEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }
    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
